package pt

import org.codehaus.groovy.grails.plugins.springsecurity.Secured
class CineController {

    def index = {

        def peliculas = Pelicula.list()

        render view: "peliculas", model: [ peliculas: peliculas ]
    }

    @Secured(['ROLE_USER'])
    def porGenero = {
        def generos = Genero.list()
        render view: 'generos', model: [generos:generos]
    }

}
